All Questions
7 questions
0votes
1answer
47views
RHEL8: Cannot read / modify / delete directory
We have a cluster of flash drives (8TB) mounted on /data as per: /dev/mapper/vg.data-lv.data on /data type ext4 (rw,relatime) There are a couple of directories inside /data with one being tmp: ls -...
13votes
2answers
11kviews
Why is the size of a directory either 0 or 4096? [duplicate]
$ ls -l total 28 drwxrwxrwx 1 t t 4096 May 8 2018 dir1 drwxrwxrwx 1 t t 0 Mar 12 2015 dir2 drwxrwxrwx 1 t t 4096 Jan 17 2014 dir3 drwxrwxrwx 1 t t 4096 Jun 12 2017 dir4 drwxrwxrwx 1 t t ...
5votes
4answers
5kviews
How come that inodes of directories store filenames in ext4 filesystem?
A directory inode isn't substantially different from that of a regular file's inode, what I comprehend from Ext4 Disk Layout is that: Directory Entries: Therefore, it is more accurate to say ...
1vote
1answer
134views
Tiny directory on ext4 file system taking up 2024 blocks? [closed]
I have an ext4 file system on my work computer and I came across a directory that is taking up >1 mb of space. There are 7 entries in the directory. The directory hasn't ever contained more than 20 ...
4votes
1answer
3kviews
How to update directory size after file removal?
This is mostly theorethical question without real practical usage. As you may know, filenames are stored in directory inode. That means the more files we have and the longer filenames are the more ...
1vote
1answer
5kviews
Why the size of an empty directory in Linux is 4KB? [duplicate]
I'm using Ubuntu 14.04 and I made an empty directory on /tmp with the mkdir command: cd /tmp mkdir foo and then I checked it's size using ls: ls -ldh foo and the result shows that the size of the ...
11votes
1answer
4kviews
Why could the size of the "dot" file "." exceed 4096?
Today I found an "empty" directory with a size of 4MB. It had no visible contents, so I tried ls -lah. This showed me some hidden files (not very large). Searching for the reason why the directory ...